import { defineUserConfig } from "vuepress";
import { searchPlugin } from "@vuepress/plugin-search";
import { registerComponentsPlugin } from "@vuepress/plugin-register-components";

import theme from "./theme.js";
import ques from "./containers/ques";
import card from "./containers/card";
import folding from "./containers/folding";
import Path from "path";

export default defineUserConfig({
	base: "/737-exterior-inspection/",

	locales: {
		"/": {
			lang: "en-US",
			title: "737 Exterior Inspection",
			description: "A docs demo for vuepress-theme-hope",
		},
	},

	theme,

	shouldPrefetch: false,

	plugins: [
		ques,
		card,
		folding,
		searchPlugin({
			isSearchable: (page) => !/private/.test(page.path),
		}),
		registerComponentsPlugin({
			componentsDir: Path.join(__dirname, "components"),
		}),
	],
});
